package com.xywl.escort.view.user;

import com.xywl.escort.base.BasePresenter;
import com.xywl.escort.base.BaseView;
import com.xywl.escort.bean.BaseResp;
import com.xywl.escort.bean.UserAutoInfoResp;
import com.xywl.escort.bean.UserInfoResp;

public interface UserInfoContract {

    interface Presenter extends BasePresenter {
        void takeView(UserInfoContract.View view);

        void findUserInfo(String userId);

        void findUserAutoInfo(String userId);

        void updateUserInfo(final String nickname, final String userId);

        void updateUserInfo(final String path, final String nickname, final String userId);
    }

    interface View extends BaseView<Presenter> {
        void findUserInfoSuccess(UserInfoResp.DataBean dataBean);

        void findUserInfoFailure(String msg);

        void findUserAutoInfoSuccess(UserAutoInfoResp.DataBean dataBean);

        void findUserAutoInfoFailure();

        void updateNicknameSuccess(BaseResp resp);

        void updateAvatarSuccess(BaseResp resp, String headImg);

        void updateUserInfoFailure(String msg);
    }
}